$(function () {
    var thisPage = null, html = [], user = null, inviteUrl = "";

    var invitePage = function () {
        this.init();
    };

    invitePage.prototype = {
        init: function () {
            this.initData();
            this.bindEvent();
        },
        initData: function () {
            user = getLocalStorage(STORAGE_MANAGER.user);
            inviteUrl = window.location.origin + "/soolife_webchat/view/account/register.html?memberid=" + user.id;
            //分享链接
            $("#inviteLink").html(inviteUrl);
            //二维码

        },
        bindEvent: function () {
            //点击后退
            $("#back").on("tap", function () {
                back();
            });
            //查看邀请记录
            $("#inviteList").on("tap", function () {
                redirect("invitelist.html");
                return false;
            });


        }
    };

    thisPage = new invitePage();

});
